package cn.aitrox.ry.service.auth.dao;

import cn.aitrox.ry.common.dao.BaseDao;
import cn.aitrox.ry.service.auth.entity.AuthResourceEntity;
import cn.aitrox.ry.service.auth.entity.AuthUserRoleEntity;

import java.util.List;

public interface AuthUserRoleDao extends BaseDao<AuthUserRoleEntity> {

    void batchInsert(List<AuthUserRoleEntity> list);

    void deleteByUserIdRoleIds(Integer userId, List<Integer> roleIds);

    void deleteByRoleIds(List<Integer> roleIds);

    void deleteByUserIdsRoleIds(List<Integer> userIds, List<Integer> roleIds);

    List<AuthUserRoleEntity> findByUserIds(List<Integer> userIds);

    List<AuthResourceEntity> findResoureByUserId(Integer userId);
}
